package com.opennews.openplatform

class AppErrorReport {
    String id
    String errorMessage
    String stackTrace
    String deviceInfo
    String systemInfo
    String username
    Date dateCreated

    static constraints = {
        errorMessage nullable: false, blank: false, maxSize: 1000
        stackTrace nullable: true, blank: true, maxSize: 4000
        deviceInfo nullable: true, blank: true, maxSize: 1000
        systemInfo nullable: true, blank: true, maxSize: 1000
        username nullable: true, blank: true
    }

    static mapping = {
        version false
    }
}
